﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Longbow;
using Longbow.Config;

namespace Longbow.Unit
{
	public partial class Longbow : Form
	{

		private Platform pf = null;



		public Longbow()
		{
			InitializeComponent();
		}

		private void Form1_Load(object sender, EventArgs e)
		{

		}

		private void startButton_Click(object sender, EventArgs e)
		{
			pf = new Platform();

			IConfig config = new MemConfig();
			config.SetLoadPolicy(new ModuleLoadPolicy(delegate(string fileName) {
				bool ew = fileName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase);
				return ew;
			}));
			pf.Load(config);


			
		}
	}
}
